import java.awt.*;
import javax.swing.JPanel;


public class StoreBGPanel extends JPanel {

	/** This is the panel holding the Store Frame's background image.
	 * 
	 * @author Amy Lambeth, Akbar Dhannani;
	 * @version 1.0 10/24/2011
	 * 
	 */
	private static final long serialVersionUID = -2593114122136527914L;

	/**
	 * Create the panel.
	 */

//use StoreBG.jpg for final. The Phantom copy is a ref for the layout.
		Image image;
		  public StoreBGPanel()
		  {
		    try
		    {
		      image = javax.imageio.ImageIO.read(new java.net.URL(getClass().getResource("Test.gif"), "Test.gif"));
		    }
		    catch (Exception e) { /*handled in paintComponent()*/ }
		  }

		  @Override
		  protected void paintComponent(Graphics g)
		  {
		    super.paintComponent(g); 
		    if (image != null)
		      g.drawImage(image, 0,0,this.getWidth(),this.getHeight(),this);
		  }
		
	}

